package com.design.model.flyweight;

/**
 * @program: study
 * @className: SharedFlyweight
 * @description: TODO
 * @author: kukuxiahuni
 * @create: 2019-06-26 14:55
 * @version: v1.0
 **/
public class SharedFlyweight implements Flyweight {

    private int state;

    public SharedFlyweight(int state) {
        this.state = state;
    }

    @Override
    public void operation(int state) {
        System.out.printf("具体行为 state=%s \n", state);
    }
}
